{{extend 'layout.html'}}

  <h1>Kiosk Contribution</h1>
  <h2>{{=T("New Record")}}</h2><br/>
  {{=form}}



<script type="text/javascript"><!--

    var make = function( elementName ) { return $(document.createElement(elementName)); }

    var currentInput = $('#kioskContribution_question');
    var currentVal = currentInput.val();

    make('select').attr( { 'name': 'question', 'id': 'kioskContribution_question' } ).append(
        make('option').val('A').text('Did the events of 9/11 change how you define a hero?'),
        make('option').val('B').text('What image or object in this exhibition moved you most?  Why?'),
        make('option').val('C').text('What scared you most about the events of 9/11?') ).insertAfter( currentInput );

    $('option').each( function( i ) { if( $(this).val() == currentVal ) { $(this).attr( { 'selected': 'selected' } ); } } );

    currentInput.empty().remove();

//--></script>

